import cv2

def main():
    img = cv2.imread('10/1.bmp', 0)
    SobelX = cv2.Sobel(img, -1, 2, 2)
    SobelX2 = cv2.convertScaleAbs(SobelX)
    
    cv2.imshow('origin', img)
    cv2.imshow('SobelX', SobelX)
    cv2.imshow('SobelX2', SobelX2)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main()